package com.financing.platform.vo;

import java.io.Serializable;
import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class BaseVO implements Serializable {

	/** 
	* @Fields serialVersionUID :    
	*/ 
	private static final long serialVersionUID = 1767765325928608322L;
	
	private Integer totalPage ; //总页数
	private Integer page ;//当前页数
	private Integer pageSize ;//每页数据条数
	
	private Integer begin; //开始记录条数
	private Integer end;//结束记录条数
	
	  private String createBy    ;//创建人  
	  private Date createDate ;//创建时间
	  private String updateBy    ;//修改人  
	  private Date updateDate ;//修改时间
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getBegin() {
		if(begin != null){
			return begin;
		}
		if(page != null && pageSize != null){
			return (page-1)*pageSize;
		}else{
			return null;
		}
	}
	public void setBegin(Integer begin) {
		this.begin = begin;
	}
	public Integer getEnd() {
		return end;
	}
	public void setEnd(Integer end) {
		this.end = end;
	}
	    
}
